package com.xin.hua;

/**
 * 代理模式
 *
 */
public class App {
    public static void main( String[] args ) {
        SchoolGirl schoolGirl = new SchoolGirl();
        schoolGirl.setName("李娇娇");

        Proxy b = new Proxy(schoolGirl);
        System.out.println("a开始让代理b追c李娇娇");
        b.giveChocolate();
        b.giveDolls();
        b.giveFlowers();
        System.out.print("青春散场   ");
        System.out.println("the end");
    }
}
